package com.zlx.xbhy.service.impl;

import com.zlx.xbhy.entity.Dept;
import com.zlx.xbhy.mapper.DeptMapper;
import com.zlx.xbhy.service.DeptServeice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @ClassName DeptServeiceImpl
 * @Description TODO
 * @Author Edward
 * @Date 2020/11/19 20:33
 */
@Service
@Transactional
public class DeptServeiceImpl extends BaseServiceImpl<Dept,Long> implements DeptServeice {
    @Autowired
    private DeptMapper mapper;


    /**
     * @Author Edward
     * @Description  查询所有正在使用的部门
     * @Date 20:34 2020/11/19
     * @Param []
     * @return java.util.List<com.zlx.xbhy.entity.Dept>
     **/
    @Override
    public List<Dept> listDept() {
        return mapper.ListDept();
    }
}
